#encoding=utf-8

# coder : chenfeng@xyzq.com.cn
# date  : 2013-12-23

from django.db import models
from ..AppConf import AppConf

class BasicElement(models.Model):
	class Meta:
		abstract = True
		app_label = AppConf.getName()
	
	name = models.CharField(u'环境名', max_length=200)
	description = models.CharField(u'描述', max_length=2000)

class Environment(BasicElement): 
	code = models.CharField(u'环境号', max_length=200)

class System(BasicElement):
	envNum = models.ForeignKey(Environment)
	version = models.CharField(u'版本', max_length=500)
	versionCheckSum = models.CharField(u'版本校验码', max_length=2000)
	lastUpdate = models.DateField(u'最后更新')
